home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
TUTORIAL
/
1307B.ZIP
/
CIRCLES.MOD
< prev
next >
Wrap
Text File
|
1989-01-18
|
676b
|
35 lines
(* Chapter 13 - Program 4 *)
IMPLEMENTATION MODULE Circles;
PROCEDURE GetPi(VAR Pi : REAL);
BEGIN
Pi := 3.14159;
END GetPi;
PROCEDURE AreaOfCircle(Radius : REAL; VAR Area : REAL);
VAR Pie : REAL;
BEGIN
GetPi(Pie);
Area := Pie * Radius * Radius;
END AreaOfCircle;
PROCEDURE PerimeterOfCircle(Radius : REAL; VAR Perim : REAL);
VAR Cake : REAL;
BEGIN
GetPi(Cake);
Perim := 2.0 * Cake * Radius;
END PerimeterOfCircle;
BEGIN (* IMPLEMENTATION MODULE body, empty in this case *)
END Circles.
(* Result of execution
(An implementation module cannot be executed alone.)
*)